package com.itheima.controller.utils;

import lombok.Data;

@Data   //@Getter @Setter toString 等的整合注解
public class Result {
    private Boolean flag;
    private Object data;
    private String msg;

    public Result(){

    }

    public Result(Boolean flag) {
        this.flag = flag;
    }

    public Result(Boolean flag,Object data){
        this.flag = flag;
        this.data = data;
    }

    public Result(Boolean flag,String msg){
        this.flag = flag;
        this.msg = msg;
    }

    public Result(String msg){
        this.flag = false;
        this.msg = msg;
    }
}
